import {GrammarErr} from './exception.js';

const Tool = Object.freeze({
    grammarErr: err=>{
        console.error(`grammar parsing error: ${err}`);
        throw new GrammarErr(err);
    },
    warn: info=>{
        console.warn(`warning: ${info}`);
    }
});